package com.qding.park.adapter.ark.adapter.impl;

import org.springframework.stereotype.Service;

import com.qding.park.common.core.exceptions.ExceptionMessage;
import com.qding.park.common.core.exceptions.business.adapter.AdapterException;
import com.qding.park.manager.pojo.ap.ApReserveOrder;
import com.qding.park.target.common.adapter.ReserveAdapter;

@Service("reserveAdapter_13")
public class ReserveAdapterImpl implements ReserveAdapter {

    @Override
    public void reserveParkSpace(ApReserveOrder apReserveOrder) throws AdapterException {
        ExceptionMessage exceptionMessage = ExceptionMessage.createExceptionMessage(
                AdapterException.TypeEnum.EXCEPTION_ADAPTER_FAIL.getDesc(), "方舟预定接口暂时不支持",
                "方舟预定接口暂时不支持");
        throw new AdapterException(AdapterException.TypeEnum.EXCEPTION_ADAPTER_FAIL.getId(), null, exceptionMessage);
    }

    @Override
    public void cancelReserve(ApReserveOrder apReserveOrder) throws AdapterException {
        ExceptionMessage exceptionMessage = ExceptionMessage.createExceptionMessage(
                AdapterException.TypeEnum.EXCEPTION_ADAPTER_FAIL.getDesc(), "方舟取消预定接口暂时不支持",
                "方舟取消预定接口暂时不支持");
        throw new AdapterException(AdapterException.TypeEnum.EXCEPTION_ADAPTER_FAIL.getId(), null, exceptionMessage);
    }

}
